package com.bandit.mapper;

import com.bandit.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface TeacherMapper
{
    /**
     * 通过id查询老师
     *
     * @param tid 老师id
     * @return 老师
     */
    public Teacher selectTeacherByTid(int tid);

    /**
     * 查询老师列表
     *
     * @param teacher
     * @return 老师集合
     */
    public List<Teacher> selectTeacherList(Teacher teacher);

    /**
     * 新增老师
     *
     * @param teacher 老师
     * @return
     */
    public int insertTeacher(Teacher teacher);

    /**
     * 修改老师
     *
     * @param teacher 老师
     * @return
     */
    public int updateTeacher(Teacher teacher);

    /**
     * 删除老师
     *
     * @param tid
     * @return
     */
    public int deleteTeacherByTID(int tid);

    /**
     * 批量删除老师
     *
     * @param tids 主键集合
     * @return
     */
    public int deleteTeacherByTIDS(String[] tids);
}
